package com.miniserver.tql.database.impl;

import com.miniserver.tql.database.DatabaseEngine;

public class PostgreSQLEngineImpl extends DatabaseEngineBaseImpl implements DatabaseEngine {
	public PostgreSQLEngineImpl() {		
	}

	/**
	 * 构造postgre
	 * 
	 * @param queryString
	 * @param pageReq
	 * @return
	 */
	@Override
	protected String getPageSQL(String queryString, Integer pageSize, Integer pageIndex) {
		return queryString + " limit " + pageSize + " offset " + (pageIndex - 1) * pageSize;
	}
}
